ComponentOne DataGrid for WPF and Silverlight
C1.WPF.DataGrid Namespace / C1DataGrid Class / SortBy Method / SortBy(DataGridColumn[]) Method
The columns that will be ordered.

In This Topic
    SortBy(DataGridColumn[]) Method
    In This Topic
    Sorts the data by the specified columns in ascending direction.
    Syntax
    'Declaration
     
    
    Public Overloads Sub SortBy( _
       ByVal ParamArray columns() As DataGridColumn _
    ) 
    public void SortBy( 
       params DataGridColumn[] columns
    )

    Parameters

    columns
    The columns that will be ordered.
    Exceptions
    ExceptionDescription
    This exception is raised whether the collection view is not ready to execute a sort operation.
    See Also